home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 …SCII & the Runetime Code / ADC Developer CD (1992-07) (''Butch ASCII And The Runtime Code'')_iso / Dev.CD 199207.iso / Tools & Apps / OS⁄Toolbox / Apple Events / AE Word Services 1.0d6 / Writeswell Jr. Source / headers / Prefs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-04-23  |  1.5 KB  |  45 lines  |  [TEXT/KAHL]

  1. /* Prefs.h
  2.  * Interface to routines for preferences file management
  3.  * ©1992 Working Software, Inc.
  4.  * This source code is copyrighted.  Permission is granted to use the Word Services
  5.  * portion of the Writeswell Jr. source code in your own programs, but you 
  6.  * may not distribute the Writeswell Jr. word-processor code as a 
  7.  * commercial product.  If you modify the code, please do not call it 
  8.  * Writeswell Jr. (or Writeswell.)  This will ensure that people understand the 
  9.  * program and don’t have to deal with a number of different versions with 
  10.  * who-knows-what going on in the code.
  11.  * 
  12.  * Writeswell Jr. and Writeswell are trademarks of Working Software, Inc.
  13.  * 18 Apr 92 Mike Crawford
  14.  */
  15.  
  16. typedef struct {
  17.     short    checkSel;
  18.     short    serviceType[ kMaxServices ];
  19. } WWJrPrefs, **WWJrPrefsHdl;
  20.  
  21. typedef enum {
  22.     kNoService = 0,
  23.     kBatchService,
  24.     kInteractiveService
  25. } ServiceType;
  26.  
  27. #define kServiceBaseID    1000
  28.  
  29. #define kAFPrefsID    128
  30. #define kPFPrefsID    1128
  31.  
  32. Boolean OpenPrefFile( void );
  33. OSErr ValidatePrefsFile( void );
  34. OSErr GetPrefFolder( short *vRefPtr, long *dirIDPtr );
  35. Boolean FileExistsWithThisType( short vRef, long dirID, StringPtr fileName, OSType type );
  36. Boolean CreateDefaultPrefFile( short vRef, long dirID, StringPtr fileName );
  37. OSErr CopyResource( short fromID,
  38.                     short toID,
  39.                     ResType theType,
  40.                     short fromFile,
  41.                     short toFile );
  42. void ToggleSelectCheck( void );
  43. MenuHandle GetServiceMenu( void );
  44. WWJrPrefsHdl GetPrefHandle( void );
  45. void CheckSelectMenu( WWJrPrefsHdl prefHdl );